package com.cesgroup.zw.spring.boot.library.echarts.radar.simple;

import com.cesgroup.zw.spring.boot.charts.model.IChartsParam;
import com.cesgroup.zw.spring.boot.charts.model.IComponent;
import com.cesgroup.zw.spring.boot.echarts.component.series.Graph;
import com.cesgroup.zw.spring.boot.echarts.component.series.Radar;
import com.cesgroup.zw.spring.boot.echarts.model.axis.Indicator;
import com.cesgroup.zw.spring.boot.echarts.model.graph.GraphData;
import com.cesgroup.zw.spring.boot.echarts.model.rader.RaderData;
import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author ytj
 * @date 2019/7/1 15:37
 */
@Data
@SuppressWarnings("serial")
@Builder
public class SimpleRadarParam implements IChartsParam<SimpleRadarSeries,RaderData[]> {

    private String title;

    private RaderData[] dataset;

    private List<Indicator> list;


    @Override
    public IComponent[] getSeries() {
        return new SimpleRadarSeries[]{new SimpleRadarSeries(this)};
    }


}
